#ifndef _PACKAGE_H_
#define _PACKAGE_H_

#include <string>
#include <boost/property_tree/ptree.hpp>

#include "include/GlobalGameObj.h"

using namespace std;
using namespace boost::property_tree;

class Package
{
public:

	struct PackageInfo
	{
	    int character_id;
		int order_by;
		int stack_num;
		int equip_id;
		int ch_equip_id;
	};

    static int GetTotalNum(GlobalGameObj *p_game_obj);
    static int GetTotalEmptyNum(GlobalGameObj *p_game_obj);
    static int GetEquip(int order_by);
    static int GetEquipByEquipId(int equip_id, vector<int> &order_by_list);
    static int GetEquipByChEquipId(GlobalGameObj *p_game_obj, int ch_equip_id);
    static int GetPackage(vector<struct PackageInfo> &package_list);
    static int GetPackageTree(ptree &info_tree);
    static int UpdatePackage(struct PackageInfo package_item);
    static int AddPackageCell(int num);

private:

};

#endif
